/**
 * Created by user on 2018/1/8.
 */
class GlobalTime {
  constructor() {
    this.diff = 0
  }
  setGlobalTime(time) {
    this.diff = time - new Date().getTime()
  }
  getGlobalTime() {
    return new Date().getTime() + this.diff
  }
}

module.exports = new GlobalTime()
